<div id="maincontent">

<%= render :partial => "shared_common_files/data_area_help_bar" %>

<!-- h2>Edit company</h2 -->
<h2>Company > Edit</h2>
<!-- h5>Edit company information</h5 -->	
  
    <% for name in [:notice, :warning, :message] %>
    <% if flash[name] %>
      <%= "<div class='message-fatal'> #{flash[name]} </div>" %>
    <% end %>
    <% end %>


 <%=@notice%>
 
 <%= start_form_tag ({:action => 'update'},{:class => 'appform'}) %>
      <div class="req"><b>*</b>Required Information </div>
      <fieldset>
      <h3>Edit Company Information</h3>	

		<label for="name"><b><span class="req">*</span>Name :</b>
			<input class="f-name" type="text" name="orgName" id="orgName" required="true" size="30" value="<%=@org.name%>"/><br />
		</label><br/>
		
 <%= hidden_field_tag "orgId", @org.id, "size" => 20 %>
 
 <div class="f-submit-wrap">
   
    <%= image_submit_tag "/themes/odotclassic/images/btn_update.gif", :alt=> 'Update', :border => 0 %>
    <%= link_if_authorized image_tag('/themes/odotclassic/images/btn_cancel.gif', :alt => 'Cancel'), :action => 'list'%>
    
   <a href="/user/new?cid=<%=@org.id%>"><img src="/themes/odotclassic/images/btn_createuser.gif"/></a>
 </div>   
</fieldset>
<%= end_form_tag %>


<!-- 
<div class="message-information">
 <%=@notice%>
 <%= form_tag :action => 'update' %>
Name: <%= text_field_tag "orgName", @org.name, "size" => 20 %>
  
  <%= hidden_field_tag "orgId", @org.id, "size" => 20 %>
   
    <%= image_submit_tag "/themes/odotclassic/images/btn_update.gif", :border => 0 %>
    
</div>
<%= end_form_tag %>
-->
<!-- a href="/user/new?cid=<%=@org.id%>">Create user for this company</a --> &nbsp;&nbsp;

</div>